import cacheView from "./modules/cachaView"

const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  accessUser: state => state.user.accessUser,
  cacheViews: state => state.cacheView.cacheViews,

  getTableBar: state=>state.tableOutData,
  getCheckBoxText: state=>state.checkBoxText,
  getarraryListTemp: (state,id)=>{
    for (let i=0;i<state.arraryListTemp.length;i++){
      if (id==state.arraryListTemp[i].id){
        return state.arraryListTemp[i].checkBoxText
      }
    }
    return null
  },
  getWidgets: state=>state.widgets,

  getCarts:state=>state.carts

}
export default getters
